package org.arroganz.kapa.core;

import org.arroganz.kapa.framework.FrameMain;
import org.arroganz.kapa.interfaces.IKapaEngine;

public class EngineKapa implements IKapaEngine{

	private boolean isRunning = false;

	// Classes
	
		//FrameWork
		private FrameMain frameMain;
	
	@Override
	public void startEngine() {
		System.out.println(" Engine is started ");
		isRunning = true;
//		buildFrameWork(); // multiThreading Grafik and CoreStuff
		// Thread Grafik
		// Thread Core, Database
	}

	@Override
	public void stopEngine() {
		System.out.println(" Engine has stopped ");
		isRunning = false;
		destroyFrameWork();
	}

	@Override
	public boolean isRunning() {
		return isRunning;
	}
	
	private void buildFrameWork(){
		frameMain = new FrameMain();
	}
	
	private void destroyFrameWork(){
		
	}

}
